<div class="jumbotron simple">
    <div class="container">
        <h1>Tài khoản <small>Đăng ký</small></h1>
    </div>
</div>
<div id="container-main" class="container">
    <div class="row">
        <div class="col-md-18 col-sm-14">
            <div class="row">
                <div class="col-md-12 marginbottom30">
                    <div class="page-header">
                        <h3>
                            <i class="fa fa-pencil-square-o"></i> Đăng ký tài khoản 
                            <span class="page-header-under primary"></span>
                        </h3>
                    </div>
                    <?php $form=$this->beginWidget('CActiveForm', array(
                            'id'=>'create-form',
                            'enableClientValidation'=>true,
                            'clientOptions'=>array(
                                'validateOnSubmit' => true,
                                'validateOnChange' => true,
                            ),
                            'enableAjaxValidation'=>false,
                            'htmlOptions' => array('class' => 'form-horizontal my-form')
                        )); ?>

                    <div class="form-group">
                        <?php echo $form->labelEx($model,'name', array('class' => 'col-sm-10 control-label')); ?>
                        <div class="col-sm-14">
                            <?php echo $form->textField($model,'name',array('placeholder'=> $model->getAttributeLabel('name'),'maxlength'=>255, 'class' => 'form-control')); ?>
                            <?php echo $form->error($model,'name');?>
                        </div>
                    </div> 
                    <div class="form-group">
                        <?php echo $form->labelEx($model,'username', array('class' => 'col-sm-10 control-label')); ?>
                        <div class="col-sm-14">
                            <?php echo $form->textField($model,'username',array('placeholder'=> $model->getAttributeLabel('username'),'maxlength'=>255, 'class' => 'form-control')); ?>
                            <?php echo $form->error($model,'username');?>
                        </div>
                    </div> 
                    <div class="form-group">
                        <?php echo $form->labelEx($model,'password', array('class' => 'col-sm-10 control-label')); ?>
                        <div class="col-sm-14">
                            <?php echo $form->passwordField($model,'password',array('placeholder'=> $model->getAttributeLabel('password'),'maxlength'=>255, 'class' => 'form-control')); ?>
                            <?php echo $form->error($model,'password');?>
                        </div>
                    </div> 
                    <div class="form-group">
                        <?php echo $form->labelEx($model,'rePassword', array('class' => 'col-sm-10 control-label')); ?>
                        <div class="col-sm-14">
                            <?php echo $form->passwordField($model,'rePassword',array('placeholder'=> $model->getAttributeLabel('rePassword'),'maxlength'=>255, 'class' => 'form-control')); ?>
                            <?php echo $form->error($model,'rePassword');?>
                        </div>
                    </div> 
                    <div class="form-group">
                        <?php echo $form->labelEx($model,'verifyCode', array('class' => 'col-sm-10 control-label')); ?>
                        <div class="col-sm-14">
                            <?php echo $form->textField($model,'verifyCode', array('class' => 'form-control')); ?>
                            <?php $this->widget('CCaptcha', Yii::app()->params->captcha['view']); ?>
                            <?php echo $form->error($model,'verifyCode');?>
                        </div>
                    </div>

                    <?php /*
                    <div class="form-group">
                        <div class="col-sm-offset-10 col-sm-14">
                            <?php echo $form->checkBox($model,'condition')?>
                            <label for="CreateUserForm_condition" style="font-weight: normal;">
                                Đồng ý <a href="<?php echo $this->createUrl('/user/page/condition')?>">điều khoản sử dụng</a>
                                <abbr title="Hiện tại chưa có điều khoản nào." rel="tooltip"><i class="fa fa-question-circle"></i></abbr>
                            </label> 
                            <?php echo $form->error($model,'condition'); ?>                          
                        </div>
                    </div>
                    */?>


                    <div class="form-group">
                        <div class="col-sm-offset-10 col-sm-14">
                            <button class="btn btn-primary" type="submit">
                                <i class="fa fa-pencil-square-o"></i> Đăng ký
                            </button>                               
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-10 col-sm-14">
                            <a href="<?php echo $this->createUrl('/user/page/login')?>" class="decoration-none" rel="tooltip" data-placement="top" title="Đăng ký tài khoản mới">
                                <span class="label label-success"><i class="fa fa-sign-in"></i> Đăng nhập</span>
                            </a>
                            <a href="<?php echo $this->createUrl('/user/page/forgot')?>" class="decoration-none" rel="tooltip" data-placement="top" title="Bạn không nhớ mật khẩu của mình ?">
                                <span class="label label-warning"><i class="fa fa-retweet"></i> Quên mật khẩu</span>
                            </a>
                        </div>
                    </div> 

                    <?php $this->endWidget(); ?>

                </div>
                <div class="col-md-12">
                    <?php $this->renderPartial('_openid_login');?>
                </div>
            </div>
            <hr class="visible-xs"/>
        </div>
        <div class="col-md-6 col-sm-10">
            <?php $this->renderPartial('_menu');?>
        </div>
    </div>
</div>





